import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [{
    path: "/",
    name: "Home",
    component: () => import("@/views/home-page/index.vue"),
    children: [{
        path: '/main',
        name: 'main',
        component: () => import('@/views/main/index.vue')
      },
      {
        path: '/h5ss',
        name: 'h5ss',
        component: () => import('@/views/h5ss/index.vue')
      },
      {
        path: '/timeLine',
        name: 'timeLine',
        component: () => import('@/views/timeLine/index.vue')
      },
      {
        path: '/map',
        name: 'map',
        component: () => import('@/views/map/index.vue')
      }
    ]
  },

];

const router = new VueRouter({
  routes
});

export default router;